package org.example.basic.day05;

import java.util.ArrayList;
import java.util.List;

public class Demo05List集合 {
    public static void main(String[] args) {
        List<Teacher> list = new ArrayList<>();
        list.add(new Teacher("张三",18));
        int[] a={1,3,5,7,9};
        for (int i:a){
            System.out.println(i);
        }
        for(Teacher o:list){
            System.out.println(o);
        }
    }
}


